package org.qcit.plugin.api;

import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;

/**
 * 蒲公英托管
 */
public interface PgyerUploadInterface {
    @Multipart
    @POST("app/upload")
    Call<ResponseBody> upload(@Part("_api_key") RequestBody key,
                              @Part MultipartBody.Part file,
                              @Part("buildInstallType") RequestBody buildInstallType,
                              @Part("buildPassword") RequestBody buildPassword,
                              @Part("buildUpdataDescription") RequestBody buildUpdataDescription,
                              @Part("buildName") RequestBody buildName,
                              @Part("buildInstallDate") RequestBody buildInstallDate);
}
